<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button>点我退回</button>


<script>
  document.getElementsByTagName("button")[0].onclick=function (ev) {
    window.history.back();
    // window.history.go(index);当index为-1时就是退回,为1时就是前进
  }
</script>
</body>
</html>
